#!/bin/bash
# logfile namecheck

sum=0
for i in `ls -r /var/log/*`
do
	if [ -f $i ];then
		let sum++
		echo "filename:$i"
	fi
done
echo "total_file:$sum"
